package cn.jinshengda.entity;

import com.baomidou.mybatisplus.annotation.*;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2022-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String name;
    /*
    手机号码
     */
    private String phone;

    @TableField(exist = false)
    private Integer age;

    /**
     * 性别
     */
    private String sex;

    /**
     * 身份证号
     */
    //@JsonProperty("numberId")
    @TableField("idcard")
    private String numberId;

    /**
     * 血型
     */
    private String blood;

    /**
     * 星座
     */
    //@TableField(exist = false)
    private String constellation;

    /**
     * 爱好
     */
    private String hobby;

    /**
     * 出生日期
     */
    //@JsonProperty("birthday")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("born_date")
    private Date birthday;

    /**
     * 地址
     */
    private String address;

    /**
     * 过敏史
     */
    private String abhorrence;

    /**
     * 政治面貌
     */
    //@JsonProperty("outlook")
    @TableField("political_status")
    private String outlook;

    /**
     * 民族
     */
    //@JsonProperty("nameFamily")
    @TableField("ethnicity")
    private String nameFamily;
    /*
    工作年限
     */
    @TableField("worktime")
    private Integer workTime;
    /**
     * 身高
     */
    private Double height;

    /**
     * 婚否
     */
    private String maritalStatus;

    /**
     * 紧急联系人
     */
    private String emergencyContact;

    /**
     * 紧急联系人电话
     */
    //@JsonProperty("emergencyContactPhone")
    @TableField("emergency_call")
    private String emergencyContactPhone;

    /**
     * 入职时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date entryTime;


    /**
     * 离职时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date separationTime;

    /**
     * 离职原因
     */
    private String separationReason;

    /**
     * 职位id
     */
    @JsonIgnore
    private Integer positionId;
    @TableField(exist = false)
    private String positionName;

    /**
     * 部门id
     */
    @JsonIgnore
    private Integer departmentId;

    /**
     * 学历id
     */
    @JsonIgnore
    private Integer degreeId;
    /**
     * 学历名
     */
    private String education;

    @TableField(exist = false)
    private Degree degree;

    /**
     * 履历
     */

    @TableField(exist = false)
    private List<Resume> resume;

    @TableField(exist = false)
    private List<DailyPaper> dailyPapers;

    @TableField(exist = false)
    private List<MonthlyPaper> monthlyPapers;

    /**
     * 创建日期
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonIgnore
    private Date created;

    /**
     * 修改日期
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonIgnore
    private Date updated;

    /**
     * 逻辑删除
     */
    @TableLogic
    @JsonIgnore
    private Integer deleted;

    /**
     * 备注
     */
    private String remark;
    @TableField(exist = false)
    private Department department;



}
